package kr.hkit.powerjava.chapter15;

import java.awt.Graphics;

import javax.swing.JPanel;

public class MyPanel extends JPanel {

	public MyPanel() {
	}
	
	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		System.out.println("MyPanel-paintComponent Call");
		g.drawString("Hello Java", 10, 10);
		g.drawLine(10, 20, 110, 20);
		g.drawRect(10, 30, 100, 100);
	}
	
	

}
